package Search.a01BasicSearchdemo1;

public class Test1 {
    public static void main(String[] args) {
        int[] arr = {131, 127, 147, 81};
        int num = 82;
        boolean falg = Search(arr, num);
        System.out.println(falg);
    }

    public static boolean Search(int[] arr, int num) {
        for (int i = 0; i < arr.length; i++) {
            if (num == arr[i]) {
                return true;
            }
        }
        return false;
    }
}
